package com.infotel.cartegrise.ihm;

import java.awt.BorderLayout;
import java.io.IOException;

import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class PanneauAbout extends JPanel {

    private static final long serialVersionUID = 1L;

    JEditorPane epAbout;
    JScrollPane spAbout;

    public PanneauAbout() {
        try {

            String page = "file:///C:\\formation\\workspace\\CarteGrise\\ressources\\about.html";

            this.setLayout(new BorderLayout());
            epAbout = new JEditorPane(page);
            spAbout = new JScrollPane(epAbout);

            this.add(spAbout, BorderLayout.CENTER);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}